package com.chuangke.fss;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FSSConfig {

	@Value("${fss.storage.type}")
	public String storageType;

	@Value("${fss.disk.path}")
	public String diskPath;

	@Value("${fss.big.tmp-dir}")
	public String tmpDir;
	
	@Value("${fss.is-open-elasticsearch}")
	public boolean isOpenElasticsearch ;
	
	@Value("${fss.is-auto-register-dbank}")
	public boolean isAutoRegisterDbank ;

	public String getStorageType() {
		return storageType;
	}

	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}

	public String getDiskPath() {
		return diskPath;
	}

	public void setDiskPath(String diskPath) {
		this.diskPath = diskPath;
	}

	public String getTmpDir() {
		return tmpDir;
	}

	public void setTmpDir(String tmpDir) {
		this.tmpDir = tmpDir;
	}

	public boolean isOpenElasticsearch() {
		return isOpenElasticsearch;
	}

	public void setOpenElasticsearch(boolean isOpenElasticsearch) {
		this.isOpenElasticsearch = isOpenElasticsearch;
	}

	public boolean isAutoRegisterDbank() {
		return isAutoRegisterDbank;
	}

	public void setAutoRegisterDbank(boolean isAutoRegisterDbank) {
		this.isAutoRegisterDbank = isAutoRegisterDbank;
	}

}
